package behavioral.templatemethod;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class FECourse extends ACourse {

    private boolean flag = true;

    public FECourse(boolean flag){
        this.flag = flag;
    }

    @Override
    void packageCourse() {
        System.out.println("提供课程前端代码");
        System.out.println("提供课程前端多媒体素材");
    }

    @Override
    protected boolean needWriteArtical() {
        return this.flag;
    }
}